package lgs.hm.homework.work3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class XiaoMing {
	
	private String name = "小明";
	private Integer age = 28;
	private Character sex = '男';
	
	@Autowired
	private GirFrend girFrend;
	
	public XiaoMing() {}

	public XiaoMing(String name, Integer age, Character sex) {
		this.name = name;
		this.age = age;
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Character getSex() {
		return sex;
	}

	public void setSex(Character sex) {
		this.sex = sex;
	}


	public GirFrend getGirFrend() {
		return girFrend;
	}

	public void setGirFrend(GirFrend girFrend) {
		this.girFrend = girFrend;
	}

	@Override
	public String toString() {
		return "XiaoMing [name=" + name + ", age=" + age + ", sex=" + sex + ", firFrend=" + girFrend + "]";
	}
	
	

}
